<?php
/**
 * 后台公共控制器
 */
namespace Admin\Controller;
use Think\Controller;

class PublicController extends Controller {
    //初始化操作
    public function _initialize(){
    	//检测是否登录
    	$admin_id = \admin_helper::get_admin_id();
        if(!$admin_id){
            $this->redirect('login/index');
        }

    }
}